﻿module.exports = {
    mode:"production",
    //mode:"development", //不压缩
    entry: {
        dist: './js_ES6/sys_fun_es6.js'
    },
    output: {
        path: __dirname + '/js_ES6to5',
        filename: 'sys_fun_es6_to_5.min.js'
    },
    module: {
        rules: [
            {
                test: /\.js$/,
                exclude: /node_modules/,
                loader: 'babel-loader',
                options: {
                    presets: ['babel-preset-env'],
                    plugins: ['transform-runtime']
                }
            }
        ]
    }
}
